package org.jeecg.modules.product.basics.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.basics.entity.TbPeople;
import org.jeecg.modules.product.basics.entity.TbPeopleCertificate;
import org.jeecg.modules.product.basics.entity.TbPeopleEducationTraining;
import org.jeecg.modules.product.basics.entity.TbPeopleRewardsPunishments;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 人员档案信息
 * @Author: jeecg-boot
 * @Date:   2024-07-05
 * @Version: V1.0
 */
public interface ITbPeopleService extends IService<TbPeople> {

	/**
	 * 添加一对多
	 *
	 * @param tbPeople
	 * @param tbPeopleCertificateList
	 * @param tbPeopleEducationTrainingList
	 * @param tbPeopleRewardsPunishmentsList
	 */
	public void saveMain(TbPeople tbPeople, List<TbPeopleCertificate> tbPeopleCertificateList, List<TbPeopleEducationTraining> tbPeopleEducationTrainingList, List<TbPeopleRewardsPunishments> tbPeopleRewardsPunishmentsList) ;
	
	/**
	 * 修改一对多
	 *
   * @param tbPeople
   * @param tbPeopleCertificateList
   * @param tbPeopleEducationTrainingList
   * @param tbPeopleRewardsPunishmentsList
	 */
	public void updateMain(TbPeople tbPeople, List<TbPeopleCertificate> tbPeopleCertificateList, List<TbPeopleEducationTraining> tbPeopleEducationTrainingList, List<TbPeopleRewardsPunishments> tbPeopleRewardsPunishmentsList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
